@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>首页管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="viewTitle" name="展示标题" />
                            </div>
                            <div class="col-sm-3">
                                <#select id="classtypeId" name="年龄段" >
                                <option value="">无</option>
                                @for(rec in categorys) {
                                <option value="${rec.id}">${rec.name}</option>
                                @}
                                </#select>
                            </div>
                            <div class="col-sm-3">
                                    <#select id="pageclassId" name="页面分类" >
                                        <option value="">无</option>
                                        @for(rec in pages) {
                                        <option value="${rec.id}">${rec.name}</option>
                                        @}
                                    </#select>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Apphome.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="ApphomeTableToolbar" role="group">
                            @if(shiro.hasPermission("/apphome/add")){
                                <#button name="添加" icon="fa-plus" clickFun="Apphome.openAddApphome()"/>
                            @}
                            @if(shiro.hasPermission("/apphome/update")){
                                <#button name="修改" icon="fa-plus" clickFun="Apphome.openApphomeDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/apphome/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="Apphome.delete()" space="true"/>
                            @}
                        </div>
                        <#table id="ApphomeTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/app/apphome/apphome.js"></script>
@}
